#ifndef DATASTATE_H
#define DATASTATE_H

#include "PenjinTypes.h"
#include "AnimatedSprite.h"

class DataState
{
public:
    DataState();
    DataState(CRstring nameStr, CRstring descriptionStr, CRstring bgImage, CRstring iconImage);
    ~DataState();

    void loadBackground(CRstring bgImage);
    void loadIcon(CRstring iconImage);

    string name;
    string description;
    AnimatedSprite bg;
    AnimatedSprite icon;
private:
    void loadImageFromToken(CRstring token, AnimatedSprite& target);
};

#endif
